home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
snd.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
5KB
|
219 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_snd ;
extern int Message_snd ;
extern int DButton_snd ;
extern int s_fail() ;
extern int _002Message_snd ;
extern int _001Message_snd ;
extern int DButton_snd2 ;
extern int snd_on() ;
extern int _001DButton_snd2 ;
extern int snd_off() ;
extern int _003Message_snd ;
extern int _004Message_snd ;
extern int Text_snd ;
extern int NumBox_snd ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataSND = { "MmiInit", 11, 0 } ;
/* Dialog_snd */
static MMIPACKET d001 = { &Dialog_snd,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
43, 34, 361, 223, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* Message_snd */
static MMIPACKET d002 = { &Message_snd,
&Dialog_snd,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
51, 43, 354, 66, 0,15,12,
MS_NONEL40,
"音声データの選択",
2, 16, 16,
MS_NONEL40,
10, 0
} ;
/* DButton_snd */
static MMIPACKET d003 = { &DButton_snd,
&Dialog_snd,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d003d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
109, 78, 301, 103, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
s_fail,
0x0000
} ;
/* _002Message_snd */
static MMIPACKET d004 = { &_002Message_snd,
&Dialog_snd,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
124, 79, 287, 102, 0,15, 0,
MS_NONEL40,
"音声ファィル選択",
2, 16, 16,
MS_NONEL40,
3, 0
} ;
/* _001Message_snd */
static MMIPACKET d005 = { &_001Message_snd,
&Dialog_snd,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
103, 135, 262, 158, 0,15,15,
MS_NONEL40,
"音声データ識別番号",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* DButton_snd2 */
static MMIPACKET d006 = { &DButton_snd2,
&Dialog_snd,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d006d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
97, 179, 176, 204, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
snd_on,
0x0000
} ;
/* _001DButton_snd2 */
static MMIPACKET d007 = { &_001DButton_snd2,
&Dialog_snd,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d007d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
231, 179, 310, 204, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
snd_off,
0x0000
} ;
/* _003Message_snd */
static MMIPACKET d008 = { &_003Message_snd,
&Dialog_snd,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
96, 180, 180, 203, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _004Message_snd */
static MMIPACKET d009 = { &_004Message_snd,
&Dialog_snd,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
232, 180, 312, 203, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* Text_snd */
static MMIPACKET d010 = { &Text_snd,
&Dialog_snd,
&MJ_TEXTL40,
OFFSET(TEXTL40),
0
} ;
static TEXTL40 d010d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
50, 108, 354, 126, 0, 7, 0,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
300, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
24
} ;
/* NumBox_snd */
static MMIPACKET d011 = { &NumBox_snd,
&Dialog_snd,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d011d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
262, 135, 300, 158, 0, 7,15,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 4, 1, 0,
263, 264
} ;